package cn.jzq.kotoba.modules.principle.lsp;

/**
 * @author jzq
 * @date 2019/1/23 17:48
 */
public class Soldier2 {

    private Gun gun;

    private RifleGun rifleGun;

    public void setGun(Gun gun){
        this.gun = gun;
    }

    public void setRifleGun(RifleGun rifleGun) {
        this.rifleGun = rifleGun;
    }

    public void startHandGunShoot() {
        System.out.println();
        this.gun.shoot();
        System.out.println("========手枪射击结束=======");
    }

    public void startRifleGunShoot() {
        this.gun.shoot();
        System.out.println("========步枪射击结束=======");
    }



}
